﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlueLotus7.ArchiveSystem.Common.Contracts.Sina.Weibo;

namespace BlueLotus7.ArchiveSystem.SinaContentApi.Weibo
{
    partial class WeiboContentRetriever
    {
        public List<WeiboArticle> RetrieveWeiboArticlesBySummary(long userId)
        {
            List<WeiboArticle> articles = new List<WeiboArticle>();

            if (userId > 0)
            {
                string homePageContent = this.GetHomePageContent(userId);
                articles = ContentAnalyzer.TranslateWeiboArticles(homePageContent);
                WeiboUser user = ContentAnalyzer.TranslateWeiboUserForHomeSummary(homePageContent);
            }

            return articles;
        }

        protected static WeiboArticle TranslateWeiboArticlesSummaryHtml(string htmlContent)
        {
            WeiboArticle article = null;

            if (!string.IsNullOrWhiteSpace(htmlContent))
            {
                article = new WeiboArticle();


            }

            return article;
        }

        public WeiboArticle RetrieveWeiboArticleById(string articleId)
        {
            WeiboArticle article = null;

            if (!string.IsNullOrWhiteSpace(articleId))
            {

            }

            return article;
        }


        public WeiboArticle FindSpecificWeiboArticle(long userId, string partialContent)
        {
            WeiboArticle article = null;

          
            return article;
        }
    }
}
